


<table class="layui-table">
    <colgroup>
        <col >
        <col >
        <col >
        <col >
        <col >

    </colgroup>
    <thead>
    <tr>
        <th>订单号</th>
        <th>创建时间</th>
        <th>产品</th>
        <th>实付金额</th>
        <th>订单状态</th>
    </tr>
    </thead>
    <tbody>


    <?php



    if (count($order_collect) == 0) {
        echo "<tr><td colspan='6'>暂无数据</td></tr>";
    }
    ?>


    <?php
    foreach ($order_collect as $k=>$v){
        ?>

        <tr id="item<?echo $v['nid']?>" >
            <td><? echo $v['order_id'];?></td>
            <td><? echo $v['add_date'];?></td>
            <td>
                    <?{echo  $v['order_name'];}?>
            </td>
            <td> <?echo $v['order_price'] ?></td>
            <td>
                <? if($v['pay_status']=="0"){echo "待付款";}?>
                <? if($v['pay_status']=="1"){echo "<span style='background-color: #44ff00'>已付款</span>";}?>
                <? if($v['pay_status']=="2"){echo "<span style='background-color: #cccccc'>已退款</span>";}?>
                <? if($v['pay_status']=="3"){echo "<span style='background-color: #ff0000'>待退款</span>";}?>

            </td>

        </tr>
        <?php

    }
    ?>
    </tbody>
</table>
